<html>
<meta charset="UTF-8">
<script src="../WEB-INF/lib/jquery-3.2.0.js"></script>

<body>
    <table class="clickSort aaa" border="1">
        <thead>
            <tr>
                <th>A</th>
                <th>B</th>
                <th>C</th>
                <th>D</th>
            </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
</body>
<script src="../WEB-INF/lib/ClickSort.js "></script>
<script type="text/javascript">
    $(function () {
        for (let j =0 ;j<4;j++) {
            let tr = $("<tr></tr>");
            for (let i = 0; i < 4; i++) {
                let td = $("<td></td>");
                td.text(j);
                tr.append(td);
            }
            $("tbody").append(tr);
        }
        (new ClickSort()).start();
    })
</script>

</html>